package com.atguigu.controller;

import com.atguigu.result.RetVal;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class WebLoginController {

    //实现页面登录的跳转
    @GetMapping({"login.html"})
    public String index(HttpServletRequest request){
        String originalUrl = request.getParameter("originalUrl");
        request.setAttribute("originalUrl",originalUrl);
        return "login";
    }
}
